<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新增会员地址</title>
    <!--引入layui-->
    <link rel="stylesheet" th:href="@{/assets/lib/layui/css/layui.css}">
    <script th:src="@{/assets/lib/layui/layui.js}"></script>
    <!--自定义格式-->
    <script th:src="@{/assets/front/js/account/addMemAddr.js}"></script>

    <!--定义上下文路径-->
    <script th:inline="javascript">
        let ctx = /*[[@{/}]]*/"";//上下文路径
        if (ctx.endsWith("/")) {
            ctx = ctx.substring(0, ctx.length - 1);
        }
    </script>
    <style>
        body {
            margin-top: 16px;
            margin-right: 46px;
        }

        .layui-form-select {
            margin: 0 10px 20px 0;
            width: 200px;
            display: inline-block;
        }
    </style>
</head>
<body>
<form id="add-form" class="layui-form" lay-filter="add-form">
    <div class="layui-form-item">
        <label class="layui-form-label ">收货人姓名</label>
        <div class="layui-input-block">
            <input type="text" name="name" lay-verify="required" lay-reqtext="收货人姓名不可为空"
                   placeholder="请输入收货人姓名" autocomplete="off" class="layui-input ">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label ">收货人电话</label>
        <div class="layui-input-block">
            <input type="text" name="phone" lay-verify="required||phone" lay-reqtext="收货人电话格式不正确"
                   placeholder="请输入收货人电话" autocomplete="off" class="layui-input ">
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">收货地址</label><br>
        <!--            省市区街道-->
        <div class="layui-input-block">
            <select lay-search=""  lay-filter="prov" class="prov">
                <option value="">请选择或搜索省</option>
<!--                js渲染-->
            </select>

            <select lay-search=""  lay-filter="city" class="city">
                <option value="">请选择或搜索城市</option>
                <option disabled>请先选择省份</option>

            </select>
        </div>

        <div class="layui-input-block">
            <select lay-search=""  lay-filter="dist" class="dist">
                <option value="">请选择或搜索区县</option>
                <option disabled>请先选择城市</option>

            </select>
            <select  lay-filter="str" class="str" name="streetId" lay-verify="required" lay-reqtext="收货地址不能为空">
                <option value="">请选择或搜索街道</option>
                <option disabled>请先选择区县</option>

            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">详细地址</label>
        <div class="layui-input-block">
            <textarea name="detail" placeholder="请输入详细地址" class="layui-textarea"
                      lay-verify="required" lay-reqtext="详细地址不能为空"></textarea>
        </div>
    </div>
</form>

</body>
</html>